package com.example.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigInteger;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 保险记录实体类
 * @author system
 */
@ApiModel(value = "保险记录业务对象")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("insurance_record")
public class InsuranceRecord {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "记录ID")
    private BigInteger id; // 主键
    
    @ApiModelProperty(value = "员工地址")
    private String employeeAddress; // 员工地址
    
    @ApiModelProperty(value = "雇主地址")
    private String sponsorAddress; // 雇主地址
    
    @ApiModelProperty(value = "保险类型")
    private Integer insuranceType; // 保险类型 1-养老保险
    
    @ApiModelProperty(value = "保险状态")
    private Integer status; // 状态 0-无效 1-有效
    
    @ApiModelProperty(value = "开始日期")
    private LocalDate startDate; // 保险开始日期
    
    @ApiModelProperty(value = "结束日期")
    private LocalDate endDate; // 保险结束日期
    
    @ApiModelProperty(value = "缴费基数")
    private Integer paymentBase; // 缴费基数
    
    @ApiModelProperty(value = "个人账户余额")
    private Integer personalBalance; // 个人账户余额
    
    @ApiModelProperty(value = "总账户余额")
    private Integer overallBalance; // 总账户余额
    
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime; // 创建时间
    
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime; // 更新时间
}